package com.redis.data.seckillshopping.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 哲思小辉
 * @version 1.0.0
 * @ClassName Consumer.java
 * @Description 顾客实体
 * @Param
 * @createTime 2020年03月25日 20:35:00
 */
@Data
@ApiModel(value = "Consumer", description = "顾客对象")
public class Consumer extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -73718525493113879L;
    /**
     * 主键
     */
    @ApiModelProperty(name = "id", value = "主键", dataType = "Long", example = "11111")
    private Integer id;
    /**
     * 用户姓名
     */
    @ApiModelProperty(name = "name", value = "用户姓名", dataType = "String", example = "王者")
    @Length(min = 2, max = 15, message = "姓名长度为2~15字符")
    private String name;
    /**
     * 手机号码
     */
    @ApiModelProperty(name = "mobile", value = "手机号码", dataType = "String", example = "13988888888")
    private String mobile;

    /**
     * 账户余额
     */
    @ApiModelProperty(name = "accountBalance", value = "账户余额", dataType = "Double", example = "1000.2")
    private Double accountBalance;
}